﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace Cache.Redis
{
    /// <summary>
    /// RedisConfig 的摘要说明
    /// </summary>
    public class RedisConfig
    {
        
    }


    #region redis数据库

    /// redis客户端配置
    /// <summary>
    /// redis客户端配置
    /// </summary>
    public class RedisClient
    {
        /// key
        /// <summary>
        /// key
        /// </summary>
        public string RedisKey { get; set; }

        /// redis数据库链接配置
        /// <summary>
        /// redis数据库链接配置
        /// </summary>
        public RedisServer RedisServer { get; set; }
    }

    /// redis数据库链接配置
    /// <summary>
    /// redis数据库链接配置
    /// </summary>
    public class RedisServer
    {
        /// 密码+ip地址+端口号
        /// <summary>
        /// 密码+ip地址+端口号
        /// </summary>
        public string Hosts { get; set; }

        ///// 端口号
        ///// <summary>
        ///// 端口号
        ///// </summary>
        //public int Port { get; set; }

        ///// 密码
        ///// <summary>
        ///// 密码
        ///// </summary>
        //public string Password { get; set; }

        /// 数据库
        /// <summary>
        /// 数据库
        /// </summary>
        public int Db { get; set; }
    }

    #endregion redis数据库
}
